package com.ziyan.annotation;


import com.ziyan.BaseIEnum;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 枚举描述
 * <p>
 * private Integer type;
 * &#064;com.ziyan.annotation.EnumDesc(field = "type", enumClass= com.ziyan.BaseIEnum.class)
 * private String typeDesc;
 * <p>
 *
 * @author ziyan
 * @email 434595824@qq.com
 * @date 2019年09月10日
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.SOURCE)
public @interface EnumDesc {

    /**
     * 参考的成员变量
     *
     * @return
     */
    String field();

    /**
     * 枚举数据
     *
     * @return
     */
    Class<? extends BaseIEnum> enumClass();
}
